@echo off

set CLASSPATH=.\bin;%1
set path=C:\Program Files\Java\jdk1.5.0_15\bin;%path%

set sourcepath="E:\\workspace\\replaceFunction\\source\\"
set destpath="E:\\workspace\\replaceFunction\\destination\\"
set suffix="dmd"

echo compile... 

javac  -d .\bin .\src\ReplFunc.java

echo run... 
echo Result:
java ReplFunc %sourcepath% %destpath% %suffix%

echo finish!

echo. & pause
@echo on